/******************************************************************************
*
* This file is part of FreeTrack (http://code.google.com/p/qtfreetrack).
* BY Willy Gardiol (willy@gardiol.org)
*
* FreeTrack is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FreeTrack is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Foobar.  If not, see <http://www.gnu.org/licenses/>
*
******************************************************************************/

#ifndef STATUSBAR_H
#define STATUSBAR_H

#include "IncFreeTrack.h"
#include "freetrackwidget.h"

class FTLabel;
class FTHelpWidget;
class FTPushButton;

class StatusBar : public FreeTrackWidget
{
    Q_OBJECT
public:
    explicit StatusBar(QWidget *parent = 0);

signals:

public slots:
    // Update status bar labels
    void updateGpsStatus(bool);
    void updateTrackingStatus(bool);
    void updateLiveStatus(int,qreal);
    // uncheck the menu
    void uncheck();


private:
    // Status bar widgets
    QHBoxLayout* statusBarLayout;
    FTPushButton* menu;
    FTLabel* gpsStatus;
    FTPushButton* trackingStatus;
    FTLabel* liveStatus;
    FTHelpWidget* statusHelp;

    QLayout* createHorizontal();
    QLayout* createVertical();
};

#endif // STATUSBAR_H
